package com;

public class MyGenerics {
    public static void main(String[] args) {
        Box<String> box1 = new Box<>();
        box1.setElement("宝，想你的夜");
        String element = box1.getElement();
        System.out.println(element);


        Box<Integer> box2 = new Box<>();
        box2.setElement(18);
        Integer element1 = box2.getElement();
        System.out.println(element1);
    }
}
